import App from './App'

import uView from "uview-ui";
Vue.use(uView);

import {api} from './common/js/api.js';
Vue.prototype.$api = api;
import {config} from './common/js/api.js';
Vue.prototype.$config = config; 
import {http} from './common/js/api.js';
Vue.prototype.$http = http;
import {err_code} from './common/js/api.js';
Vue.prototype.$ErrCode = err_code;

import {Base} from "./common/js/base.js";
let base = new Base();
Vue.prototype.$base = base;

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif